All Packages Class Hierarchy This Package Previous Next Index
Interface com.sun.java.swing.ButtonModel
- public interface ButtonModel
- extends ItemSelectable
State Model for Buttons
-
addActionListener(ActionListener)
-
-
addChangeListener(ChangeListener)
-
-
addItemListener(ItemListener)
-
-
getActionCommand()
-
-
getMnemonic()
-
-
isArmed()
-
-
isEnabled()
-
-
isPressed()
-
-
isRollover()
-
-
isSelected()
-
-
removeActionListener(ActionListener)
-
-
removeChangeListener(ChangeListener)
-
-
removeItemListener(ItemListener)
-
-
setActionCommand(String)
-
-
setArmed(boolean)
- Marks the button as "armed".
-
setEnabled(boolean)
-
-
setGroup(ButtonGroup)
-
-
setMnemonic(int)
-
-
setPressed(boolean)
-
-
setRollover(boolean)
-
-
setSelected(boolean)
-
isArmed
public abstract boolean isArmed()
isSelected
public abstract boolean isSelected()
isEnabled
public abstract boolean isEnabled()
isPressed
public abstract boolean isPressed()
isRollover
public abstract boolean isRollover()
setArmed
public abstract void setArmed(boolean b)
- Marks the button as "armed". If the mouse button is
released while it is over this item, the button's action event
fires. If the mouse button is released elsewhere, the
event does not fire and the button is disarmed.
- Parameters:
- b - true to arm the button so it can be selected
setSelected
public abstract void setSelected(boolean b)
setEnabled
public abstract void setEnabled(boolean b)
setPressed
public abstract void setPressed(boolean b)
setRollover
public abstract void setRollover(boolean b)
setMnemonic
public abstract void setMnemonic(int key)
getMnemonic
public abstract int getMnemonic()
setActionCommand
public abstract void setActionCommand(String s)
getActionCommand
public abstract String getActionCommand()
setGroup
public abstract void setGroup(ButtonGroup group)
addActionListener
public abstract void addActionListener(ActionListener l)
removeActionListener
public abstract void removeActionListener(ActionListener l)
addItemListener
public abstract void addItemListener(ItemListener l)
removeItemListener
public abstract void removeItemListener(ItemListener l)
addChangeListener
public abstract void addChangeListener(ChangeListener l)
removeChangeListener
public abstract void removeChangeListener(ChangeListener l)
All Packages Class Hierarchy This Package Previous Next Index